const path = require('path')
/* 覆盖webpack的配置 */
module.exports = {
  devServer: {
    // 自定义服务配置
    open: true,
    port: 3000
  },

  // 开启eslint检查
  lintOnSave: true,

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.join(__dirname, '/src/styles/variables.less')
      ]
    }
  }
}
